package extend.polymorphic.father_and_son;

public class Child extends Parent{
    public Child() {
        // 父类构造方法是无参数的版本, 此处不必使用 super 显式调用.
    }

    private int num = 10;

    @Override
    public void func() {
        System.out.println("Child.func(): num = " + num);
    }
}
